package com.hrm.model;

import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class HrmStaff {
    private Integer id;

    private String name;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date birthday;

    private String sex;

    private String phone;

    private String idcard;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date joinTime;

    @DateTimeFormat(pattern="yyyy-MM-dd")
    private Date leaveTime;

    private Integer apartmentId;

    private Integer postId;

    private String remark;

    private HrmApartment hrmApartment;

    private HrmPost hrmPost;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name == null ? null : name.trim();
    }

    public Date getBirthday() {
        return birthday;
    }

    public void setBirthday(Date birthday) {
        this.birthday = birthday;
    }

    public String getSex() {
        return sex;
    }

    public void setSex(String sex) {
        this.sex = sex == null ? null : sex.trim();
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getIdcard() {
        return idcard;
    }

    public void setIdcard(String idcard) {
        this.idcard = idcard == null ? null : idcard.trim();
    }

    public Date getJoinTime() {
        return joinTime;
    }

    public void setJoinTime(Date joinTime) {
        this.joinTime = joinTime;
    }

    public Date getLeaveTime() {
        return leaveTime;
    }

    public void setLeaveTime(Date leaveTime) {
        this.leaveTime = leaveTime;
    }

    public Integer getApartmentId() {
        return apartmentId;
    }

    public void setApartmentId(Integer apartmentId) {
        this.apartmentId = apartmentId;
    }

    public Integer getPostId() {
        return postId;
    }

    public void setPostId(Integer postId) {
        this.postId = postId;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark == null ? null : remark.trim();
    }


    public HrmApartment getHrmApartment() {
        return hrmApartment;
    }

    public void setHrmApartment(HrmApartment hrmApartment) {
        this.hrmApartment = hrmApartment;
    }

    public HrmPost getHrmPost() {
        return hrmPost;
    }

    public void setHrmPost(HrmPost hrmPost) {
        this.hrmPost = hrmPost;
    }
}